import request from '@/utils/request'

// 查询汇总列表
export function listTotal(query) {
  return request({
    url: '/system/total/list',
    method: 'get',
    params: query
  })
}

// 查询汇总详细
export function getTotal(totalId) {
  return request({
    url: '/system/total/' + totalId,
    method: 'get'
  })
}

// 新增汇总
export function addTotal(data) {
  return request({
    url: '/system/total',
    method: 'post',
    data: data
  })
}

// 修改汇总
export function updateTotal(data) {
  return request({
    url: '/system/total',
    method: 'put',
    data: data
  })
}

// 删除汇总
export function delTotal(totalId) {
  return request({
    url: '/system/total/' + totalId,
    method: 'delete'
  })
}

// 导出汇总
export function exportTotal(query) {
  return request({
    url: '/system/total/export',
    method: 'get',
    params: query
  })
}